<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
 
<script type="text/javascript" src="./js/jquery-1.8.0.js"></script>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
<html:html lang="true">
<head>

	<title>update</title>
</head>

<body>

	<html:form action="/login.do">
		 
		<table border="0" align="center" height="200" width="800">
			<tr>
				<td valign="top">
					<table border="1" align="center"
						onkeydown="if(event.keyCode==13){return false;}">
						<tr>
							<td>
								<bean:message key="label.user.username" />
							</td>
							<td>
								<html:text property="user.sname">
								</html:text>
							</td>
						</tr>
						<tr>
							<td>
								<bean:message key="label.user.userpwd" />
							</td>
							<td>
								<html:password property="user.spassword"></html:password>
							</td>
						</tr>
						<tr>
							<td colspan="2" align="center">
							<html:hidden property="user.sid"/>
								<input type="button" id="update"
									value="<bean:message key="label.common.update"/>">

							</td>

						</tr>
					</table>
				</td>
			</tr>
		</table>


	</html:form>


	<script>
  
  $("#update").click(function(){  
 
		var f=document.forms[0];
		f.action="login.do?method=update";
		f.submit();
}); 

 
  
  </script>
</body>


</html:html>
